package com.bwie.shop.service.impl;

import com.bwie.common.domain.Shop;
import com.bwie.common.domain.request.ShopReq;
import com.bwie.common.result.Result;
import com.bwie.shop.mapper.ShopMapper;
import com.bwie.shop.service.ShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName ShopServiceImpl
 * @Description 描述
 * @Author ShiYu.Cui
 * @Date 2024/4/25 9:34
 */
@Service
public class ShopServiceImpl implements ShopService {
    @Autowired
    private ShopMapper shopMapper;
    @Override
    public List<Shop> shopList(ShopReq shopReq) {
        return shopMapper.shopList(shopReq);
    }

    @Override
    public void add(Shop shop) {
        shopMapper.add(shop);
    }

    @Override
    public void update(Shop shop) {
        shopMapper.update(shop);
    }

    @Override
    public Result findById(Integer id) {
        return shopMapper.findById(id);
    }


}
